# -*- coding: utf-8 -*-
# @Date    : 2014-08-29 11:03:11
# @Author  : Your Name (you@example.org)
# @Link    : http://example.org
# @Version : $Id$


# from lib.util import find_subclasses
# import os
# import fnmatch
# from conf.dbconf import heavenDb

# def get_all_model():
#     clazz = []

#     current_path = os.path.dirname(os.path.abspath(__file__))
#     for path, subdirs, files in os.walk(current_path):
#         for f in files:
#             if fnmatch.fnmatch(f, '*.py') and not f.startswith('__init__'):
#                 clazz.append(f[:-3])

#     __import__('models',globals(),locals(),clazz)

#     all_models = find_subclasses(heavenDb.Model)
#     # all_models.extend(find_subclasses(db.Model))

#     return all_models